package com.ruoyi.contact.service.impl;

import com.ruoyi.contact.mapper.ContactReportMapper;
import com.ruoyi.contact.service.IContactReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 联系人功能的Service业务层处理
 *
 * @author
 * @date
 */
@Service
public class ContactReportServiceImpl implements IContactReportService {
    @Autowired
    ContactReportMapper contactReportMapper;

    @Override
    public List<Map<String, Integer>> selectContactCountByCategory(){
        return contactReportMapper.selectContactCountByCategory();
    }

    @Override
    public List<Map<String,Object>> selectContactcountByMonth(){
        return contactReportMapper.selectContactCountByMonth();
    }
}